//
//  CCDPraseDataModel.h
//  operativeSide
//
//  Created by 王春程 on 16/5/19.
//  Copyright © 2016年 com.caocaod.www. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CCDHttpBaseTool.h"

typedef void(^SuccessBlock)(id JSON);
typedef void(^FaithBlock)(NSError *error);
@interface CCDPraseDataModel : NSObject

@property (nonatomic, strong) SuccessBlock successBlock;
@property (nonatomic, strong) FaithBlock faithBlock;

//get请求
+ (void)getWithUrl:(NSString *)url params:(NSDictionary *)params progressView:(UIProgressView *)progressView successBlock:(SuccessBlock)httpSuccess faithBlock:(FaithBlock)httpFaith;

//post请求
+ (void)postWithUrl:(NSString *)url params:(NSDictionary *)params progressView:(UIProgressView *)progressView successBlock:(SuccessBlock)httpSuccess faithBlock:(FaithBlock)httpFaith;

@end
